import indexV from "../views/index.ejs";
import Navbar from "../components/Navbar.ejs";
import Siderbar from "../components/Sidebar.ejs";
import Content from "../components/Content.ejs";
import Footer from "../components/Footer.ejs";

export default ()=>{
	return ({url},res,next)=>{
		next(indexV({
			Navbar:Navbar(),// 头部
			Siderbar:Siderbar({url}),
			Content:Content({subRoute:res.subRoute()}),
			Footer:Footer()
		}));
	}
}